package com.fstech.whiteboadrd.server;

import com.fstech.whiteboadrd.server.response.BaseResponse;
import com.fstech.whiteboadrd.utils.UIUtils;

public class ResponseUtil {

    public static boolean checkResponse(BaseResponse response) {

        if (response.getCode() == 200) {
            return true;
        } else {
            UIUtils.showToastSafe(response.getMessage());
            return false;
        }

    }

}
